/* 
 *  <copyright file="ChargeSwitchExit.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

#region File Description
//-----------------------------------------------------------------------------
// ChargeSwitchExit.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion

#region Using Statements
using Microsoft.Xna.Framework.Input;
#endregion

namespace SobrietyEngine.Input
{
    /// <summary>
    /// ChargeSwitch strType for exiting the gameServices.
    /// </summary>
    class ChargeSwitchExit : ChargeSwitch
    {
        public ChargeSwitchExit(float duration) : base(duration) { }

        protected override bool IsCharging(ref GamePadState gamePadState)
        {
            return (gamePadState.Buttons.Back == ButtonState.Pressed);
        }
    }
}
